package com.physique.tea.Controller;

import com.physique.tea.Global.Result;
import com.physique.tea.Service.DeepSeekService;
import com.physique.tea.Service.QuestionService;
import com.physique.tea.dto.QuestionDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
@RequestMapping("/question")
public class QuestionController {
    @Autowired
    QuestionService questionService;

    @Autowired
    DeepSeekService deepSeekService;

    @GetMapping("/get")
    public @ResponseBody Result getAllQuestion(){
        return questionService.getAllQuest();
    }


    @PostMapping("/getPhysique")
    public @ResponseBody Result getPhysique(@RequestBody QuestionDto question){
        return questionService.getPhysiqueByQuestion(question);
    }
}
